<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('期末结转')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" shiro:hasPermission="system:finalaccount:dofinal" onclick="dofinal()"><i class="fa fa-search"></i>&nbsp;期末结转</a>
                                <a class="btn btn-warning btn-rounded btn-sm" shiro:hasPermission="system:finalaccount:undofinal" onclick="undofinal()"><i class="fa fa-refresh"></i>&nbsp;期末反结转</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>
             <div class="col-sm-12 select-table">
	            <div id="ibox-content">
	                 <div id="vertical-timeline" class="vertical-container light-timeline">
	                     <div class="vertical-timeline-block">
	                         <div class="vertical-timeline-icon navy-bg">
	                             <i class="fa fa-briefcase"></i>
	                         </div>
	
	                         <div class="vertical-timeline-content">
	                             <h2>期末结转</h2>
	                             <p>期末结转将结束当前核算期间的核算业务处理，将核算期间转至下一核算月份。期末结转前请先确认当前核算期间的业务都已处理完，如果您确认本月的工作都已处理完，请按“期末结转”键进行结转
	                             </p>
	                             <a href="#" class="btn btn-sm btn-primary"> 期末结转后您将不能处理上一核算期间的数据，期末结转功能请谨慎操作</a>
	                             <span class="vertical-date">
	                         		<br>
			                         <small>期末结转</small>
			                     </span>
	                         </div>
	                     </div>
	                 </div>
	             </div>
             </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
       
        var prefix = ctx + "system/finalaccount";

		
		function dofinal() {
			$.modal.confirm("确认要期末结转当前会计期间吗？", function() {
				$.operate.post(prefix + "/doFinal");
		    })
		}
		function undofinal() {
			$.modal.confirm("确认要期末反结转当前会计期间吗？", function() {
				$.operate.post(prefix + "/undoFinal");
		    })
		}
    </script>
</body>
</html>